﻿<Window x:Class="ViewTest.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="412" Width="300">
    <Grid>
        <ListView ItemsSource="{Binding Path=ContactList}" Margin="0,0,0,141" Name="listView1" >
            <ListView.View>
                <GridView>
                    <GridViewColumn Width="100">
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <Image Source="{Binding Path=Image}"/>
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>
                    <GridViewColumn Width="50" >
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <TextBlock Text="{Binding Path=Alias}"/>
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>
                </GridView>
            </ListView.View>
        </ListView>
        <Button Command ="{Binding Path=LoginCommand}" Height="58" Margin="0,0,10,77" Name="button1" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="43">Login</Button>
        <Button Height="25" HorizontalAlignment="Right" Margin="0,0,12,46" Name="button2" VerticalAlignment="Bottom" Width="100" Visibility="Hidden">Logout</Button>
        <TextBox Height="23" Margin="78,0,59,106" Name="textBox1" VerticalAlignment="Bottom">
            <TextBox.Text>
                <Binding Mode="OneWayToSource" Path="Login" UpdateSourceTrigger="PropertyChanged"/>
            </TextBox.Text>
        </TextBox>
        <TextBox Height="23" Margin="78,0,59,77" Name="textBox2" VerticalAlignment="Bottom">
            <TextBox.Text>
                <Binding Mode="OneWayToSource" Path="Password" UpdateSourceTrigger="PropertyChanged"/>
            </TextBox.Text>
        </TextBox>
        <Label Height="28" Margin="12,0,0,101" Name="label1" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="70">email</Label>
        <Label Height="28" HorizontalAlignment="Left" Margin="12,0,0,77" Name="label2" VerticalAlignment="Bottom" Width="70">password</Label>
        <TextBox x:Name="AppMessage" Margin="12,0,12,8"  TextWrapping="Wrap" Height="63" VerticalAlignment="Bottom" BorderThickness="0" IsReadOnly="True">
            <TextBox.Text>
                <Binding Mode="OneWay" Path="AppMessage" UpdateSourceTrigger="PropertyChanged"/>
            </TextBox.Text>
        </TextBox>
    </Grid>
</Window>